package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.MonthDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MonthDetailMapper;
import com.ruoyi.system.service.IMonthDetailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 月份详情表Service业务层处理
 * 
 * @author zhangjun
 * @date 2020-02-17
 */
@Service
public class MonthDetailServiceImpl implements IMonthDetailService 
{
    @Autowired
    private MonthDetailMapper monthDetailMapper;

    /**
     * 查询月份详情表
     * 
     * @param id 月份详情表ID
     * @return 月份详情表
     */
    @Override
    public MonthDetail selectMonthDetailById(Long id)
    {
        return monthDetailMapper.selectMonthDetailById(id);
    }

    /**
     * 查询月份详情表列表
     * 
     * @param monthDetail 月份详情表
     * @return 月份详情表
     */
    @Override
    public List<MonthDetail> selectMonthDetailList(MonthDetail monthDetail)
    {
        return monthDetailMapper.selectMonthDetailList(monthDetail);
    }

    /**
     * 新增月份详情表
     * 
     * @param monthDetail 月份详情表
     * @return 结果
     */
    @Override
    public int insertMonthDetail(MonthDetail monthDetail)
    {
        return monthDetailMapper.insertMonthDetail(monthDetail);
    }

    /**
     * 修改月份详情表
     * 
     * @param monthDetail 月份详情表
     * @return 结果
     */
    @Override
    public int updateMonthDetail(MonthDetail monthDetail)
    {
        return monthDetailMapper.updateMonthDetail(monthDetail);
    }

    /**
     * 删除月份详情表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMonthDetailByIds(String ids)
    {
        return monthDetailMapper.deleteMonthDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除月份详情表信息
     * 
     * @param id 月份详情表ID
     * @return 结果
     */
    @Override
    public int deleteMonthDetailById(Long id)
    {
        return monthDetailMapper.deleteMonthDetailById(id);
    }
}
